﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 业务系统的企业信息
    /// </summary>
    [Serializable]
    public class Enterprise : Entity
    {
        /// <summary>
        /// 中文名
        /// </summary>
        public virtual string NameCN { get; set; }

        /// <summary>
        /// 英文名
        /// </summary>
        public virtual string NameEN { get; set; }

        /// <summary>
        /// 助记码
        /// </summary>
        public virtual string SimpleCode { get; set; }

        /// <summary>
        /// 所属区域（所属城市）
        /// </summary>
        public virtual string AreaName { get; set; }

        /// <summary>
        /// 中文地址
        /// </summary>
        public virtual string AddressCN { get; set; }

        /// <summary>
        /// 英文地址
        /// </summary>
        public virtual string AddressEN { get; set; }

        /// <summary>
        /// 邮政编码
        /// </summary>
        public virtual string PostCode { get; set; }

        /// <summary>
        /// 企业创建日期
        /// </summary>
        public virtual DateTime CreationDate { get; set; }

        /// <summary>
        /// 企业类型ID
        /// </summary>
        public virtual string TypeId { get; set; }

        /// <summary>
        /// 法人代表中文名
        /// </summary>
        public virtual string LegalPersonNameCN { get; set; }

        /// <summary>
        /// 法人代表英文名
        /// </summary>
        public virtual string LegalPersonNameEN { get; set; }

        /// <summary>
        /// 法人代表性别
        /// </summary>
        public virtual string LegalPersonGender { get; set; }

        /// <summary>
        /// 企业人数类型ID
        /// </summary>
        public virtual string EntSize { get; set; }

        /// <summary>
        /// 联系人姓名
        /// </summary>
        public virtual string LinkUserName { get; set; }

        /// <summary>
        /// 联系人移动电话
        /// </summary>
        public virtual string LinkUserMobilephone { get; set; }

        /// <summary>
        /// 联系人桌面电话
        /// </summary>
        public virtual string LinkUserDesktophone { get; set; }

        /// <summary>
        /// 联系人传真
        /// </summary>
        public virtual string LinkUserFax { get; set; }

        /// <summary>
        /// 联系人EMAIL
        /// </summary>
        public virtual string LinkUserEmail { get; set; }

        /// <summary>
        /// 联系人职务
        /// </summary>
        public virtual string LinkUserPosition { get; set; }

        /// <summary>
        /// 业务范围描述，以逗号分隔
        /// </summary>
        public virtual string BusinessScope { get; set; }

        /// <summary>
        /// 审核标识
        /// </summary>
        public virtual int MarkFlag { get; set; }

        /// <summary>
        /// 企业标志：
        /// 0：供应商；
        /// 1：采购商；
        /// 2：二者皆是；
        /// </summary>
        public virtual string EntFlag { get; set; }

        /// <summary>
        /// 审核日期
        /// </summary>
        public virtual DateTime MarkDate { get; set; }

        /// <summary>
        /// 审核人ID
        /// </summary>
        public virtual t_sys_user MarkUser { get; set; }

        /// <summary>
        /// 企业参与的招标项目列表
        /// </summary>
        public virtual IList<ref_ProjectAndEnterprise> Projects { get; set; }

        /// <summary>
        /// 企业的用户列表
        /// </summary>
        public virtual IList<EnterpriseUser> EntUsers { get; set; }

        /// <summary>
        /// 企业的联系人列表
        /// </summary>
        public virtual IList<EnterpriseLinkUser> EntLinkers { get; set; }

        /// <summary>
        /// 纳税人识别号
        /// </summary>
        public virtual string TaxpayerIDNumber { get; set; }

        /// <summary>
        /// 开户银行
        /// </summary>
        public virtual string OpeningBank { get; set; }

        /// <summary>
        /// 基本户账号
        /// </summary>
        public virtual string BasicAccount { get; set; }

        /// <summary>
        /// 是否为增值税一般纳税人：0、否；1、是；
        /// </summary>
        public virtual int IsValueAddTaxpayer { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public virtual string Remark { get; set; }

        /// <summary>
        /// 组织机构代码证号（2016-11-14新加属性 byYY）
        /// </summary>
        public virtual string BidderCode { get; set; }

        /// <summary>
        /// CA证书编号（2016-11-14新加属性 byYY）
        /// </summary>
        public virtual string CACode { get; set; }

        /// <summary>
        /// 所属行业代码（2016-11-14新加属性 byYY）
        /// </summary>
        public virtual string IndustryCode { get; set; }

        /// <summary>
        /// 注册资本（2016-11-14新加属性 byYY）
        /// </summary>
        public virtual decimal RegCapital { get; set; }

        /// <summary>
        /// 注册资金币种（2016-11-14新加属性 byYY）
        /// </summary>
        public virtual string RegCapCurrency { get; set; }

        /// <summary>
        /// 资信等级（2016-11-14新加属性 byYY）
        /// </summary>
        public virtual string CreditRate { get; set; }


        public Enterprise()
        {
            this.IsValid = 1;
            this.CreateDate = DateTime.Now;
            this.Projects = new List<ref_ProjectAndEnterprise>();
            this.EntUsers = new List<EnterpriseUser>();
            this.EntLinkers = new List<EnterpriseLinkUser>();
        }
    }
}
